import json
import collections


with open('../MC1/V1/MC1.json', encoding='utf-8') as f:
    j = json.load(f)
    print(len(j['nodes']))
    print(len(j['links']))

degree = collections.Counter()
for e in j['links']:
    degree.update((e['source'], e['target']))
l = sorted(degree.items(), key=lambda x: -x[1])
print(len(l), l[342 * 5], l[0])
